package com.jvyou.subject.application.convert;

import com.jvyou.subject.application.dto.SubjectCategoryDto;
import com.jvyou.subject.domain.entity.SubjectCategoryBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 橘柚
 * @since 2024/9/26 19:49
 */
@Mapper
public interface SubjectCategoryDtoConverter {

    SubjectCategoryDtoConverter INSTANCE = Mappers.getMapper(SubjectCategoryDtoConverter.class);

    SubjectCategoryBo dtoToBo(SubjectCategoryDto subjectCategoryDto);

    List<SubjectCategoryDto> boToDto(List<SubjectCategoryBo> subjectCategoryBos);
}
